package com.lanxiao.cloud.modules.oauth.application.dto;

import com.lanxiao.cloud.common.core.dto.TreeNodeDto;
import com.lanxiao.cloud.modules.oauth.infrastructure.enums.TypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2021-09-16
 */
@ApiModel("角色下的权限（树形结构）返回模型")
public class RolePermissionDto extends TreeNodeDto<Long> {

  @ApiModelProperty(value = "名称")
  private final String title;
  @ApiModelProperty(value = "类型")
  private final TypeEnum type;

  public RolePermissionDto(Long id, Long parentId, String title,
      TypeEnum type) {
    super(id, parentId);
    this.title = title;
    this.type = type;
  }

  public String getTitle() {
    return title;
  }

  public TypeEnum getType() {
    return type;
  }

}
